home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_066 / malloctest / poster < prev   
Text File  |  1992-05-06  |  1KB  |  31 lines

  1. Article 574 of net.sources:
  2. Path: mcdsun!noao!hao!nbires!seismo!husc6!necntc!encore!vaxine!nw
  3. From: nw@vaxine.UUCP (Neil Webber)
  4. Newsgroups: net.sources
  5. Subject: malloc/free test program
  6. Message-ID: <417@vaxine.UUCP>
  7. Date: 16 Feb 87 20:49:49 GMT
  8. Organization: Automatix, Inc., Billerica, MA
  9. Lines: 460
  10.  
  11. A while back I asked the net if anyone had a malloc/free test program that
  12. would allocate and free randomly sized pieces of memory with random lifetimes
  13. (and fill them with patterns that would be checked for corruption).  I got
  14. a number of useful suggestions (best one: use the "diff" program as a
  15. malloc test ... it's brutal).  Eventually, I wound up writing my own
  16. test program, which actually helped me find a bug.
  17.  
  18. On the assumption that it might be useful to someone else, here it is.
  19. Please note:
  20.  
  21.         - No documentation (read the code to find out what it does).
  22.         - Could be extended in zillions of ways to make it more useful.
  23.         - No makefile, just compile "cc mtest.c"
  24.  
  25. A "shar" archive follows.
  26.  
  27. Neil Webber     Automatix Inc. (or current resident)    Billerica MA
  28.         {decvax,ihnp4,allegra}!encore!vaxine!nw
  29.  
  30. ---------------------- cut here -------------------------------------
  31.